package com.baselibrary.test.View;

import android.content.Context;
import android.util.AttributeSet;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.baselibrary.libs.View.baseView.BaseView;
import com.baselibrary.test.R;
import com.bumptech.glide.Glide;

/**
 * Created by Administrator 于萌萌
 * 创建日期: 12:21 . 2017年03月06日
 * 描述:
 * <p>
 * <p>
 * 备注:
 */

public class myUi extends BaseView {

    private ImageView mMyinfo_sub_items_image;
    private TextView myinfo_sub_items_title;

    public myUi(Context context) {
        super(context);
    }

    public myUi(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    public myUi(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
    }

    @Override
    public int getXml() {
        return com.baselibrary.test.R.layout.my_info_sub_items;
    }

    @Override
    public void initView(View view) {
        mMyinfo_sub_items_image = (ImageView) view.findViewById(R.id.myinfo_sub_items_image);
        myinfo_sub_items_title = (TextView) view.findViewById(R.id.myinfo_sub_items_title);

    }

    public myUi setImager(Context context,String pacth){
        Glide
                .with(context)
                .load(pacth)
                .into(mMyinfo_sub_items_image);
        return  this;
    }
    public myUi setTitle(String title){
        myinfo_sub_items_title.setText(title);
        return  this;
    }
}
